/*
package com.liaoban.app.ui.base;

import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.trello.rxlifecycle2.components.support.RxDialogFragment;

import butterknife.ButterKnife;
import butterknife.Unbinder;

*/
/**
 * DialogFragment基类
 * Created by ybc on 2017/9/20.
 *//*

@Deprecated
public abstract class BaseDialogFragment extends RxDialogFragment {

    // 设置Fragment的布局id
    @LayoutRes
    protected abstract int getLayoutResID();

    //此方法中进行View内容的初始化以及监听的绑定,此时View已经通过注入获取.
    protected abstract void initView(View contentView);

    Unbinder unbinder;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View contentView = null;

        int layoutResID = getLayoutResID();
        if (layoutResID > 0) {
            contentView = inflater.inflate(layoutResID, null);
            unbinder = ButterKnife.bind(this, contentView);
            initView(contentView);
        }
        return contentView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }
}
*/
